<?php
include_once("inc/conn.php");
include_once("inc/function.php");
include_once("heheadmin/inc/config.php");
login_check();
?>
<!Doctype html>
<html lang="zh-cn">
<head>
    <meta name="keywords" content="<?php echo $web_keywords;?>" />
    <meta name="description" content="<?php echo $web_description ;?>" />
    <title>保时捷28,蛋蛋28,加拿大28,幸运28,PC蛋蛋,<?php echo $web_name ;?></title>
    <?php
    require 'public/title.inc.php';
    ?>
    <link rel="stylesheet" type="text/css" href="style/member.css" />
    <script type="text/javascript" src="js/member.js"></script>
    <script type="text/javascript">
        function getContents(c, a)
        {
            cssChange(a);
            $.get('b.php',{c:c,a:a},function(ret){
                $("#divContent").empty();
                $("#divContent").html(ret);
            });
        }
    </script>
</head>
<body>
<? include_once("top2.php");?>
<link rel="stylesheet" type="text/css" href="css/yj_member.css" />
<div style="width: 100%;height: 131px;"></div>
<div class="container">
    <div class="member">
        <div class="uese">
            <div class="tops">
                <div class="media">
                    <div class="media-left">
                        <img src="<?php if($_SESSION['head']){echo $_SESSION['head'];}else{echo 'img/head/1_0.jpg';}?>" alt="" class="media-object">
                    </div>
                    <div class="media-body">
                        <p>您好，<span><?=$_SESSION['nickname']?></span></p>
                        <p>宝币：<span><?=Trans($_SESSION['points'])?></span></p>
                        <p>银行：<span><?=Trans($_SESSION['bankpoints'])?></span></p>
                    </div>
                </div>
                <div class="btns">
                    <p><a class="btn btn-danger" href="javascript:getContents('user','onlinepay')">　充 值　</a> </p>
                    <p><a class="btn btn-danger" href="javascript:getContent('smbinfo.php','Withdrawals')">　提 现　</a></p>
                 
                </div>


                <!--
            	<div class="img">
                	<img src="img/head/1_1.jpg?>" id="sltHead" />
                    <span><?=GetUserGroupName()?></span>
                </div>



            	<ul>
                	<li class="tls">您好，<?=$_SESSION['nickname']?></li>
                    <li>宝币：<i><?=Trans($_SESSION['points'])?></i></li>
                    <li>银行：<i><?=Trans($_SESSION['bankpoints'])?></i></li>
                </ul>
                 -->
            </div>

            <div class="title">

                <ul>

                     <li><a id='menu_mydetail' class="btn btn-default btn-block" href="javascript:getContent('smbinfo.php','mydetail')">个人资料</a></li>
                    <li><a id='menu_mybank' class="btn btn-default btn-block" href="javascript:getContent('smbinfo.php','mybank')">我的银行</a></li>
                    <li><a id='menu_mybank' class="btn btn-default btn-block" href="javascript:getContent('smbinfo.php','exchangelist')">兑换记录</a></li>
                    <li><a id='menu_rebate' class="btn btn-default btn-block" href="javascript:getContent('smbinfo.php','rebate')">领取返利</a></li>
					<li><a id='menu_rebate' class="btn btn-default btn-block" href="javascript:getContent('smbinfo.php','rewardrank')">排行榜奖励</a></li>
                              <?php  //if (isset($_SESSION['isagent'])){  else }?>
                            <?php if (isset($_SESSION['isagent'])){ //如果已定义session里的username并且这个username为空
    $yangshi="block";
}else{
     $yangshi="none";
}?>
                    


                    <li><a id='menu_messagelist' class="btn btn-default btn-block" href="javascript:getContent('smbinfo.php','messagelist')">站内信息</a></li>
                    <li><a id='menu_recommend_earnings' class="btn btn-default btn-block" href="javascript:getContents('user','extension')" >推广收益</a></li>
                    <li><a id='pack' class="btn btn-default btn-block" href="javascript:getContents('user','get_pack')" >领取红包</a></li>
                    <li><a id='pack' class="btn btn-default btn-block" href="member.php?yj_act=bind_account" >绑定收款账号</a></li>
                    <!-- <li><a id='pack' class="btn btn-default btn-block" href="javascript:yj_play()" >测试</a></li> -->

                </ul>

            </div>
            <div class="media med_a">
                <div class="media-left media-middle media_active">
                    <img src="img/left_gift.png" alt="" class="media-object" />
                </div>
                <div class="media-body">
                    <h4>亏损返利活动申请</h4>
                    <p><a target="_blank" href='http://wpa.qq.com/msgrd?v=3&uin=123456&site=qq&menu=yes'>联系客服>></a></p>
                </div>
            </div>
            <div class="media med_a" style="border-top:1px solid #2b2b2b;">
                <div class="media-left media-middle media_active">
                    <img src="img/left_pay.png" alt="" class="media-object" />
                </div>
                <div class="media-body">
                    <h4>平台支持多种充值。</h4>
                    <p><a href="javascript:getContents('user','onlinepay')">立即充值>></a></p>
                </div>
            </div>
        </div>
        <div id="divContent" class="su"></div>
    </div>
</div>
<audio id="myaudio" src="images/9337.mp3" hidden="true" >
</audio>
<? include_once("yj_footer.php"); ?>
<script type="text/javascript">
$(document).ready(function(){
    <?php
        $yj_act = !empty($_GET['yj_act'])? $_GET['yj_act'] : "";
        switch ($yj_act) {
            case 'bind_account':
               echo "getContent('smbinfo.php','binding')";
                break;
            case 'onlinepay':
               echo "getContents('user','onlinepay')";
                break;
            case 'Withdrawals':
               echo "getContent('smbinfo.php','Withdrawals')";
                break;
            default:
                echo "getContent('smbinfo.php','baseinfo')";
                break;
        }
    ?>
});   

function yj_play() {
    var myAuto = document.getElementById('myaudio');
    myAuto.play();
}
function yj_get_pay(){
    var myAuto = document.getElementById('myaudio');
    myAuto.play();
}
</script>

</body>

</html>
